package Queue;

import java.util.Deque;
import java.util.LinkedList;

public class DequeDemo {
    public static void main(String[] args) {
        Deque de = new LinkedList();
        de.addFirst("3");
        de.addFirst("2");
        de.addFirst("1");
        de.addLast("9");
        de.addLast("8");
        System.out.println(de.toString());
    }
}
